package game.block.blocks;

import game.block.entity.MovableEntity;
import game.block.entity.TrapEntity;
import game.block.game.Board;
import game.block.tile.Tile;
import game.block.turn.Turn;

import com.badlogic.gdx.math.Vector2;

public class KingBlock extends MovableEntity {

	public KingBlock(Vector2 pos, Tile tile) {
		super(pos, tile, KING_TILE, TYPE.KING);
	}

	@Override
	public boolean select(Turn currentTurn, Tile t, Board board) {
		return super.select(currentTurn, t, board);
	}

	@Override
	public boolean counterEffect(TrapEntity te) {
		if (te.getType().equals(TRAPTYPE.FIRE)
				|| te.getType().equals(TRAPTYPE.HOLE)
				|| te.getType().equals(TRAPTYPE.QUICKSAND)
				|| te.getType().equals(TRAPTYPE.SPIKE)) {
			Board.DIED=true;
		}
		return false;
	}

	@Override
	public void setInfo() {
		info="Name:  King Block\n\nFunction:  Reach the goal to move to the next level";
	}
}
